-- GENERATED SPELL FOR [Venom Stalker] --


function spell0_15976(pUnit, Event) --@Poison Charge,n/a--
pUnit:FullCastSpellOnTarget(28431,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15976', 583, 1)
end

function spell1_15976(pUnit, Event) --@Poison Charge,n/a--
pUnit:FullCastSpellOnTarget(53809,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15976', 621, 1)
end

function Sorts_15976(pUnit, Event)
local choix_sorts_15976 = math.random(0, 1)
if choix_sorts_15976 == 0 then
pUnit:RegisterEvent('spell0_15976', 1, 1)
end
if choix_sorts_15976 == 1 then
pUnit:RegisterEvent('spell1_15976', 1, 1)
end
end

function mob15976_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15976', math.random(1500, 3000), 1)
end

function mob15976_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15976_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15976_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15976, 1, 'mob15976_Action')
RegisterUnitEvent(15976, 2, 'mob15976_Leave')
RegisterUnitEvent(15976, 3, 'mob15976_Kill')
RegisterUnitEvent(15976, 4, 'mob15976_Die')
